--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 718e2ca859c7ca6676e3b73d690e3c5ee7119669
Parents : 9dc09be
Author : Mark Qvist <mark@unsigned.io>
Date : 2021-09-19T00:15:26+02:00
Fixed None reference
Changes
Diff
diff --git a/nomadnet/ui/textui/Network.py b/nomadnet/ui/textui/Network.py
index a980eab..99c93fe 100644
--- a/nomadnet/ui/textui/Network.py
+++ b/nomadnet/ui/textui/Network.py
@@ -700,7 +700,11 @@ class NodeInfo(urwid.WidgetWrap):
g = self.app.ui.glyphs
self.dialog_open = False
- display_name = self.app.node.name
+ if self.app.node != None:
+ display_name = self.app.node.name
+ else:
+ display_name = None
+
if display_name == None:
display_name = ""
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────